package test.hibernate;

import test.hibernate.dao.HibernateDAOFactory;


/**
 * Generated at Thu Feb 25 19:39:58 CET 2010
 * 
 * @see http://www.hibernate.org/328.html
 * @author Salto-db Generator v1.0.16 / EJB3 + Hibernate DAO
 */

public abstract class DAOFactory {

        private static final DAOFactory HIBERNATE = new HibernateDAOFactory();

        public static final DAOFactory DEFAULT = HIBERNATE;

        /**
         * Factory method for instantiation of concrete factories.
         */
        public static DAOFactory instance(Class factory) {
                try {
                        return (DAOFactory) factory.newInstance();
                } catch (Exception ex) {
                        throw new RuntimeException("Couldn't create DAOFactory: " + factory);
                }
        }

        public abstract CompanyInfoDAO buildRequestorDefinitionDAO();

}
